package spring.cloud.tasks.client.batch_task_processor;

import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TaskWorkerInstanceClientInfo {
    @Setter
    @Getter
    private String taskId;
    @Setter
    @Getter
    private String taskInstanceId;
    @Setter
    @Getter
    private TaskThreadInfo taskCreaterThreadInfo;
    @Setter
    @Getter
    private List<TaskThreadInfo> taskExecuterThreadInfoList = new ArrayList<TaskThreadInfo>();
    @Setter
    @Getter
    private TaskThreadInfo taskResultCollecterThreadInfo;

    public static class TaskThreadInfo {
        @Setter
        @Getter
        private String taskId;
        @Setter
        @Getter
        private String taskInstanceId;
        @Setter
        @Getter
        private String threadId;
        @Setter
        @Getter
        private Date lastUpdateDate;
        @Setter
        @Getter
        private String status = "running";//finshed error

    }
}
